'use strict';

let
    Koa = require('koa'),
    bodyParser = require('koa-bodyparser'),
    temp = require('./templating'),
    con = require('./controllers'),
    sta = require('koa-static'),
    port = 12123,
    app = new Koa();

app.use(bodyParser());

app.use(sta(__dirname+'/static'));

app.use(temp);

app.use(con());

app.listen(port,()=>{
    console.log(`http://localhost:${port}`);
});